/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaModificar.java
 *
 * Created on 14-may-2012, 11:54:04
 */
package gui;

/**
 *
 * @author usuario_local
 */
public class VentanaModificar extends javax.swing.JFrame {

    Ventana1 v1;
    
    /** Creates new form VentanaModificar */
    public VentanaModificar(Ventana1 v1) {
        this.v1 = v1;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButton_VMDocumento = new javax.swing.JButton();
        jButton_VMAcontecimiento = new javax.swing.JButton();
        jButton_VMPersonaje = new javax.swing.JButton();
        jButton_VMColectivo = new javax.swing.JButton();
        jButton_VMTerminar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

        jButton_VMDocumento.setText("Documento");
        jButton_VMDocumento.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_VMDocumentoMouseClicked(evt);
            }
        });

        jButton_VMAcontecimiento.setText("Acontecimiento");
        jButton_VMAcontecimiento.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_VMAcontecimientoMouseClicked(evt);
            }
        });

        jButton_VMPersonaje.setText("Personaje");
        jButton_VMPersonaje.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_VMPersonajeMouseClicked(evt);
            }
        });

        jButton_VMColectivo.setText("Colectivo");
        jButton_VMColectivo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_VMColectivoMouseClicked(evt);
            }
        });

        jButton_VMTerminar.setText("Terminar");
        jButton_VMTerminar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_VMTerminarMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButton_VMTerminar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton_VMDocumento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton_VMAcontecimiento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton_VMPersonaje, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton_VMColectivo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton_VMDocumento)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_VMAcontecimiento)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_VMPersonaje)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_VMColectivo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_VMTerminar)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButton_VMDocumentoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_VMDocumentoMouseClicked
// TODO add your handling code here:
    VentanaModificarEleccion vme = new VentanaModificarEleccion(1,this);
    vme.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_jButton_VMDocumentoMouseClicked

private void jButton_VMTerminarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_VMTerminarMouseClicked
// TODO add your handling code here:
    v1.setVisible(true);
    this.setVisible(false);
    this.dispose();
}//GEN-LAST:event_jButton_VMTerminarMouseClicked

private void jButton_VMAcontecimientoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_VMAcontecimientoMouseClicked
// TODO add your handling code here:
    VentanaModificarEleccion vme = new VentanaModificarEleccion(2,this);
    vme.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_jButton_VMAcontecimientoMouseClicked

    private void jButton_VMPersonajeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_VMPersonajeMouseClicked
        // TODO add your handling code here:
        VentanaModificarEleccion vme = new VentanaModificarEleccion(3, this);
        vme.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_jButton_VMPersonajeMouseClicked

    private void jButton_VMColectivoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_VMColectivoMouseClicked
        // TODO add your handling code here:
        VentanaModificarEleccion vme = new VentanaModificarEleccion(4, this);
        vme.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_jButton_VMColectivoMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_VMAcontecimiento;
    private javax.swing.JButton jButton_VMColectivo;
    private javax.swing.JButton jButton_VMDocumento;
    private javax.swing.JButton jButton_VMPersonaje;
    private javax.swing.JButton jButton_VMTerminar;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
